<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp" %>
<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
<link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function change(){
	var type=$("input[name='type']:checked").val();
	//$(".tr0").hide();
	$(".tr1").hide();
	$(".tr2").hide();
	$(".tr"+type).show();
	
}
$(document).ready(function () {
	change();
});

function ck(type,finId,finName){
	
	window.parent.dialogArguments.chooseFinCallBack(type,finId,finName);
	window.close();
}
</script>
</head>
	<table width="100%" border="0" cellpadding="1" cellspacing="1">
		<tr>
	
			<td class="left-td-width-bg" width="25%">
					<font color="red">*</font>收取方式：
				</td>
				<td width="75%">
					<!-- <input type="radio" checked name="type" value="0" onclick="change()" title="月份"/>月份 -->
					<input type="radio" checked name="type" value="1" onclick="change()" title="季度"/>季度
					<input type="radio" name="type" value="2" onclick="change()" title="半年"/>半年
				</td>
	</table>
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td width="20%" class="top-td-width-bg">序号</td>
    <td width="80%" class="top-td-width-bg">金融机构名称</td>
  </tr>
  <%-- <s:if test="financials!=null">
  <s:iterator value="financials" status="st">
  <tr class="tr0">
    <td  class="down-center-td-width-bg"><s:property value="#st.index+1"/></td>
    <td class="down-center-td-width-bg"><a href="#"><s:property value="name"/>0</a></td>
  </tr>
  </s:iterator>
  </s:if>
  <s:else><tr class="tr0"><td>没有可按月份预收的金融机构</td></tr></s:else> --%>
  
  <s:if test="financialsQuarter!=null">
  <s:iterator value="financialsQuarter" status="st">
  <tr class="tr1">
    <td  class="down-center-td-width-bg"><s:property value="#st.index+1"/></td>
    <td class="down-center-td-width-bg"><a href="javascript:ck(1,'<s:property value="id"/>','<s:property value="name"/>')"><s:property value="name"/></a></td>
  </tr>
  </s:iterator>
  </s:if>
  <s:else><tr class="tr1"><td>没有可按季度预收的金融机构</td></tr></s:else>
  
  <s:if test="financialsHalfYear!=null">
  <s:iterator value="financialsHalfYear" status="st">
  <tr class="tr2">
    <td  class="down-center-td-width-bg"><s:property value="#st.index+1"/></td>
    <td class="down-center-td-width-bg"><a href="javascript:ck(2,'<s:property value="id"/>','<s:property value="name"/>')"><s:property value="name"/></a></td>
  </tr>
  </s:iterator>
  </s:if>
  <s:else><tr class="tr2"><td>没有可按半年预收的金融机构</td></tr></s:else>
</table>

	 <table width="100%">
            	<tr>
                	<td><div align="center">
                	<!--   <input type="button" name="submit" value="确定"/> -->
                	&nbsp;&nbsp;
                      <input type="button" name="reset" value="关闭" onclick="window.close();"/>
                    </div>
                    </td>
                </tr>
     </table>        